package com.atguigu.dao;

import com.atguigu.pojo.NginxServiceConfigPhp;

import java.util.List;

public interface NginxServiceConfigPhpDao {
    //每个方法中都带有所操作类的名字,为了以后看到这个方法,就知道是干什么的
    public int addNginxServiceConfigPhp(NginxServiceConfigPhp nginxServiceConfigPhp);
    public int deleteNginxServiceConfigPhpById(String id);
    public int updateNginxServiceConfigPhp(NginxServiceConfigPhp nginxServiceConfigPhp);
    public NginxServiceConfigPhp queryNginxServiceConfigPhpById(String id);
    public List<NginxServiceConfigPhp> queryNginxServiceConfigPhps();
    public List<NginxServiceConfigPhp> queryNginxServiceConfigPhpsByServiceId(String serviceId);
    public List<NginxServiceConfigPhp> queryNginxServiceConfigPhpsByPort(String port);
    public List<NginxServiceConfigPhp> queryNginxServiceConfigPhpsByServiceIdDomainPort(String serviceId,String domain,String port);
    public List<NginxServiceConfigPhp> queryNginxServiceConfigPhpsByProjectModuleId(String projectModuleId);
    public List<NginxServiceConfigPhp> queryNginxServiceConfigPhpsByProjectModuleIdAndDeployEnvId(String projectModuleId,String deployEnvId);

    public Integer queryForPageTotalCount();
    public List<NginxServiceConfigPhp> queryForPageItems(Integer begin, Integer pageSize);
}
